package cn.lingyangwl.agile.member.assembly;

import cn.lingyangwl.agile.member.model.entity.MemberUser;
import cn.lingyangwl.agile.member.model.rqrs.user.MemberUserResp;
import cn.lingyangwl.agile.member.model.rqrs.user.MemberUserSaveReq;
import cn.lingyangwl.agile.member.model.rqrs.user.MemberUserUpdateReq;
import org.mapstruct.Mapper;

/**
 * 会员用户
 *
 * @author shenguangyang
 */
@Mapper(componentModel = "spring")
public interface MemberUserAssembly {
  MemberUserResp toUserResp(MemberUser source);
  
  MemberUser toUser(MemberUserSaveReq source);
  
  MemberUser toUser(MemberUserUpdateReq source);
}
